﻿<Window x:Class="GridExcersise.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="264" Width="538">
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBox">
                <Setter Property="BorderBrush" Value="Red"/>
                <Setter Property="BorderThickness" Value="3"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="Margin" Value="4"/>
                <Setter Property="Padding" Value="16"/>
                <Setter Property="Height" Value="60"/>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="5"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBox>Some Text</TextBox>
        <GridSplitter Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
        <TextBox Grid.Column="2">Some Text</TextBox>
        <GridSplitter Grid.Column="3" Grid.RowSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
        <TextBox Grid.Column="4">Some Text</TextBox>
        <GridSplitter Grid.Row="1" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
        <TextBox Grid.Row="2">Some Text</TextBox>
        <TextBox Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="3">Some Longer Text</TextBox>
    </Grid>
</Window>
